<?php

namespace App\Util;

class Topic
{
    /**@var string */
    private $title;

    /**@var Taxonomy[] */
    private $categories;

    /**@var Taxonomy[] $tags */
    private $tags;

    /**@var string */
    private $content;

    public function __construct(string $title = '', array $categories = [], array $tags = [], string $content = '')
    {
        $this->title = $title;
        $this->categories = $categories;
        $this->tags = $tags;
        $this->content = $content;
    }

    public function setTitle(string $title)
    {
        $this->title = $title;
        return $this;
    }

    public function setCategories(array $categories)
    {
        $this->categories = $categories;
        return $this;
    }

    public function setTags(array $tags)
    {
        $this->tags = $tags;
        return $this;
    }

    public function setContent(string $content)
    {
        $this->content = $content;
        return $this;
    }

    public function getTitle()
    {
        return $this->title;
    }

    public function getCategories()
    {
        return $this->categories;
    }

    public function getTags()
    {
        return $this->tags;
    }

    public function getContent()
    {
        return $this->content;
    }
}

